<%@ Assembly Name="PowerShellConsole, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9dfb602056ea0b96" %>
<%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" Inherits="PowerShellConsole.PageCode.ScheduleScript" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>    
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"
    runat="server">
    PowerShell Console
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    PowerShell Console
</asp:Content>

<asp:Content ID="PageDescription" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
    <br />
    Create timer jobs for the powershell script: <asp:Literal runat="server" ID="litScriptName"></asp:Literal>.
    <br />
    &nbsp;
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    
    <asp:Table CellSpacing="0" CellPadding="0" BorderWidth="0" CssClass="ms-propertysheet">
        <tr>
            <td colspan="2">
			<wssuc:ToolBar id="rctScrToolbar" runat="server">
				<Template_Buttons>
					
				</Template_Buttons>
		        <Template_RightButtons>
					
		        </Template_RightButtons>
			</wssuc:ToolBar>
            </td>
        </tr>
        
        <wssuc:InputFormSection Title="Schedule type" Description="Choose the schedule type" runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl runat="server" LabelText="Schedule type">
                    <Template_Control>
	                    <asp:DropDownList runat="server" ID="ddlScheduleType" AutoPostBack="True" OnSelectedIndexChanged="ddlSchedultTypeChange" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </template_inputformcontrols>
        </wssuc:InputFormSection>

        <wssuc:InputFormSection Title="Schedule details" Description="Choose the schedule parameters" runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl ID="ifcBeginDay" runat="server" LabelText="Begin day" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlBeginDay"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcEndDay" runat="server" LabelText="End day" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlEndDay"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcBeginMonth" runat="server" LabelText="Begin month" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlBeginMonth"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcEndMonth" runat="server" LabelText="End month" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlEndMonth"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcBeginDayOfWeek" runat="server" LabelText="Begin day of week" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlBeginDayOfWeek"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcEndDayOfWeek" runat="server" LabelText="End day of week" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlEndDayOfWeek"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcBeginHour" runat="server" LabelText="Begin hour" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlBeginHour"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcEndHour" runat="server" LabelText="End hour" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlEndHour"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcBeginMinute" runat="server" LabelText="Begin minute" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlBeginMinute"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcEndMinute" runat="server" LabelText="End minute" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlEndMinute"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcBeginSecond" runat="server" LabelText="Begin second" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlBeginSecond"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcEndSecond" runat="server" LabelText="End second" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlEndSecond"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                <wssuc:InputFormControl ID="ifcInterval" runat="server" LabelText="Interval" Visible="False">
                    <Template_Control>
                        <asp:DropDownList runat="server" ID="ddlInterval"></asp:DropDownList>
                    </Template_Control>
                </wssuc:InputFormControl>
                
            </template_inputformcontrols>
        </wssuc:InputFormSection>
        
        <wssuc:InputFormSection Title="Existing schedules" Description="Check the existing schedules of the same script" runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl runat="server" LabelText="">
                    <Template_Control>
                        <asp:CheckBoxList runat="server" ID="chklJobs" CssClass="ms-authoringcontrols" Width="350"></asp:CheckBoxList>
                        <asp:Button runat="server" UseSubmitBehavior="false" ID="btnRemove" onClick="btnRemove_OnClick" Text="Remove" class="ms-ButtonHeightWidth" causesvalidation="false" />
                    </Template_Control>
                </wssuc:InputFormControl>
            </template_inputformcontrols>
        </wssuc:InputFormSection>
        
        <wssuc:InputFormSection Title="" Description="" runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl runat="server" LabelText="">
                    <Template_Control>
                        
                    </Template_Control>
                </wssuc:InputFormControl>
            </template_inputformcontrols>
        </wssuc:InputFormSection>

        <wssuc:ButtonSection runat="server" ShowStandardCancelButton="true">
            <template_buttons>
            <asp:PlaceHolder runat="server">
				<asp:Button UseSubmitBehavior="false" runat="server" class="ms-ButtonHeightWidth" onClick="buttonOk_OnClick" Text="Ok" id="buttonOk" causesvalidation="false" />
            </asp:PlaceHolder>
        </template_buttons>
        </wssuc:ButtonSection>
    
    </asp:Table>
</asp:Content> 

